<template>
    <el-carousel height="720px" :interval="3000" arrow="always">
      <el-carousel-item>
        <img src="https://image-cdn.tuchong.com/weili/image/l/812299133178740750.jpeg" alt="">
      </el-carousel-item>
  
      <el-carousel-item>
        <img src="/static/image/banner1.png" alt="">
      </el-carousel-item>
  
      <el-carousel-item>
        <img src="/static/image/banner1.png" alt="">
      </el-carousel-item>
  
    </el-carousel>
  
  </template>
  
  <script>
  export default {
    name: "BannerComp",
  }
  </script>
  
  
  <style scoped>
  .el-carousel,
  .el-carousel__item {
    height: 690px; /* 高度固定为视口高度 */
  }
  
  .carousel-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0;
    padding: 0;
  }
  </style>